<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const num = prompt("请输入一个数字")
    if (num % 4 === 0 && num % 100 !== 0) {
        alert(true)
    } else {
        alert(false)
    }
</script>
</body>
</html>